package com.pizza;

/**
 * @author SnowmanAndBee
 * @version <version>
 * New York店，实现了PizzaStore，进行真正的创建
 * @date 2021/12/15 - 18:12
 */
public class NYPizzaStore extends PizzaStore{
    @Override
    Pizza createPizza(String type) {
        if ("cheese".equals(type)) {
            return new NYStyleCheesePizza();
        } else if ("veggie".equals(type)) {
            return new NYStyleVeggiePizza();
        } else if ("clam".equals(type)) {
            return new NYStyleClamPizza();
        } else if ("pepperoni".equals(type)) {
            return new NYStylePepperoniPizza();
        } else {
            return null;
        }
    }
}
